package com.joker.demo.core.domain.dto;

import java.util.Date;

/**
 * 任务执行请求PO
 *
 * @author : feixiang.li
 * @since : 2025-07-24 16:57
 */
public class TaskExecuteRequestDTO {

    /**
     * 任务ID
     */
    private Long jobId;


    /**
     * 注册中心key
     */
    private String registerKey;

    /**
     * 任务运行记录id
     */
    private Long jobLogId;

    /**
     * 任务名称
     */
    private String jobName;

    /**
     * 分片参数索引
     */
    private Integer shardingParamIndex;

    /**
     * 分片参数
     */
    private String shardingParam;

    /**
     * 前置任务结果
     */
    private String prevTaskResult;

    /**
     * 任务执行时间
     */
    private Date triggerTime;



    public boolean isTriggerNow() {
        return triggerNow;
    }

    public void setTriggerNow(boolean triggerNow) {
        this.triggerNow = triggerNow;
    }

    public Date getTriggerTime() {
        return triggerTime;
    }

    public void setTriggerTime(Date triggerTime) {
        this.triggerTime = triggerTime;
    }

    /**
     * 是否立即触发
     */
    private boolean triggerNow;

    @Override
    public String toString() {
        return "TaskExecuteRequestDTO{" +
                "jobId=" + jobId +
                ", registerKey='" + registerKey + '\'' +
                ", jobLogId=" + jobLogId +
                ", jobName='" + jobName + '\'' +
                ", shardingParamIndex=" + shardingParamIndex +
                ", shardingParam='" + shardingParam + '\'' +
                ", prevTaskResult='" + prevTaskResult + '\'' +
                ", triggerTime=" + triggerTime +
                ", triggerNow=" + triggerNow +
                '}';
    }


    public String getRegisterKey() {
        return registerKey;
    }

    public void setRegisterKey(String registerKey) {
        this.registerKey = registerKey;
    }

    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    public Long getJobLogId() {
        return jobLogId;
    }

    public void setJobLogId(Long jobLogId) {
        this.jobLogId = jobLogId;
    }

    public String getPrevTaskResult() {
        return prevTaskResult;
    }

    public void setPrevTaskResult(String prevTaskResult) {
        this.prevTaskResult = prevTaskResult;
    }

    public String getShardingParam() {
        return shardingParam;
    }

    public void setShardingParam(String shardingParam) {
        this.shardingParam = shardingParam;
    }

    public Integer getShardingParamIndex() {
        return shardingParamIndex;
    }

    public void setShardingParamIndex(Integer shardingParamIndex) {
        this.shardingParamIndex = shardingParamIndex;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }


}